<template>
  <div class="div-body">
    <div class="title">
      <div class="div-title-img">
        <img src="@/assets/logo/logo.png">
      </div>
      <div>
          <h3>品牌名称</h3>
          <h3><strong>成都世纪舞尚文化传播有限公司</strong></h3>
      </div>
    </div>
   <div class="div-myroom">
      <div v-for="item in roomList" :key="item.deptId">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span>舞尚舞蹈（{{item.deptName}}）</span>
        </div>
        <div>
          <img :src="item.url">
          <div>
             {{'联系电话： ' + item.tel }}
            </br>
            {{'门店地址： ' + item.city + item.area }}
          </div>

        </div>
      </el-card>
    </div>
   </div>
  </div>
</template>

<script>
import { getRooms } from "@/cms/workbench/myroom";

export default {
  name: "myroom",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 表单参数
      form: {},
      roomList: [],
    };
  },
  created() {
    this.getLists();
  },
  methods: {
    /** 查询参数列表 */
    getLists() {
      this.loading = true;
      getRooms().then((response) => {
        this.roomList = response.data;
        console.log(response.data);
        this.loading = false;
      });
    },
  },
};
</script>

<style scoped lang="scss">
.div-body {
  margin: 15px;
}

.title {
  display: flex;
}

.title img {
  width: 85px;
}

.div-myroom img {
  width: 300px;
  border-radius: 18px;
}

.div-myroom {
  border: 1px solid red;
  width: 98%;
  margin: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.div-myroom .box-card {
  flex: 1;
  border-radius: 18px;
}

.div-myroom .clearfix {
  text-align: center;
  font-weight: bold;
}
</style>
